package com.sq.partner.manager.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.NlifeRationDao;
import com.sq.partner.manager.mybatis.model.NlifeRation;
import com.sq.partner.manager.service.NlifeRationService;
import com.sq.partner.manager.util.LogUtil;


@Service
public class NlifeRationServiceImpl implements NlifeRationService {
    private static Logger logger = LogUtil.getLog(NlifeRationServiceImpl.class);
    
    @Resource
    NlifeRationDao nlifeRationDao;
    
	@Override
	public List<NlifeRation> queryRationInfo(Map<String,Object> map) throws Exception {
		List<NlifeRation> rationInfo = nlifeRationDao.queryRationInfo(map);
		return rationInfo;
	}

	@Override
	public boolean deleteRationByParam(NlifeRation ration) throws Exception {
		
		return nlifeRationDao.deleteRationByParam(ration);
	}

	@Override
	public void updateRationInfoByParam(NlifeRation ration) throws Exception {
		nlifeRationDao.updateRationInfoByParam(ration);
	}

	@Override
	public void addRation(NlifeRation ration) throws Exception {
		nlifeRationDao.addRation(ration);
	}

}
